package com.github.ecbp.user.service.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * 用户登录参数
 */
@ApiModel
@Data
public class AdminLoginDto {
    @ApiModelProperty(value = "用户名", required = true)
    @NotEmpty
    private String loginPhone;
    @ApiModelProperty(value = "密码", required = true)
    @NotEmpty
    @Size(min = 8)
    private String password;
    @ApiModelProperty(value = "验证码", required = true)
    @NotEmpty
    @Size(min = 4, max = 12)
    private String code;
}
